3.2.75 \(\int \frac {a+b \log (c x^n)}{x^3 (d+e \log (f x^m))} \, dx\) [175]

Optimal. Leaf size=141 \[ -\frac {b n}{2 e m x^2}-\frac {b e^{\frac {2 d}{e m}} n \left (f x^m\right )^{2/m} \text {Ei}\left (-\frac {2 \left (d+e \log \left (f x^m\right )\right )}{e m}\right ) \left (d+e \log \left (f x^m\right )\right )}{e^2 m^2 x^2}+\frac {e^{\frac {2 d}{e m}} \left (f x^m\right )^{2/m} \text {Ei}\left (-\frac {2 \left (d+e \log \left (f x^m\right )\right )}{e m}\right ) \left (a+b \log \left (c x^n\right )\right )}{e m x^2} \]

[Out]

-1/2*b*n/e/m/x^2-b*exp(2*d/e/m)*n*(f*x^m)^(2/m)*Ei(-2*(d+e*ln(f*x^m))/e/m)*(d+e*ln(f*x^m))/e^2/m^2/x^2+exp(2*d
/e/m)*(f*x^m)^(2/m)*Ei(-2*(d+e*ln(f*x^m))/e/m)*(a+b*ln(c*x^n))/e/m/x^2

________________________________________________________________________________________

Rubi [A]
time = 0.12, antiderivative size = 141, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {2347, 2209, 2413, 12, 15, 6617} \begin {gather*} \frac {e^{\frac {2 d}{e m}} \left (f x^m\right )^{2/m} \left (a+b \log \left (c x^n\right )\right ) \text {Ei}\left (-\frac {2 \left (d+e \log \left (f x^m\right )\right )}{e m}\right )}{e m x^2}-\frac {b n e^{\frac {2 d}{e m}} \left (f x^m\right )^{2/m} \left (d+e \log \left (f x^m\right )\right ) \text {Ei}\left (-\frac {2 \left (d+e \log \left (f x^m\right )\right )}{e m}\right )}{e^2 m^2 x^2}-\frac {b n}{2 e m x^2} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a + b*Log[c*x^n])/(x^3*(d + e*Log[f*x^m])),x]

[Out]

-1/2*(b*n)/(e*m*x^2) - (b*E^((2*d)/(e*m))*n*(f*x^m)^(2/m)*ExpIntegralEi[(-2*(d + e*Log[f*x^m]))/(e*m)]*(d + e*
Log[f*x^m]))/(e^2*m^2*x^2) + (E^((2*d)/(e*m))*(f*x^m)^(2/m)*ExpIntegralEi[(-2*(d + e*Log[f*x^m]))/(e*m)]*(a +
b*Log[c*x^n]))/(e*m*x^2)

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 15

Int[(u_.)*((a_.)*(x_)^(n_))^(m_), x_Symbol] :> Dist[a^IntPart[m]*((a*x^n)^FracPart[m]/x^(n*FracPart[m])), Int[
u*x^(m*n), x], x] /; FreeQ[{a, m, n}, x] &&  !IntegerQ[m]

Rule 2209

Int[(F_)^((g_.)*((e_.) + (f_.)*(x_)))/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[(F^(g*(e - c*(f/d)))/d)*ExpInteg
ralEi[f*g*(c + d*x)*(Log[F]/d)], x] /; FreeQ[{F, c, d, e, f, g}, x] &&  !TrueQ[$UseGamma]

Rule 2347

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_)*((d_.)*(x_))^(m_.), x_Symbol] :> Dist[(d*x)^(m + 1)/(d*n*(c*x^n
)^((m + 1)/n)), Subst[Int[E^(((m + 1)/n)*x)*(a + b*x)^p, x], x, Log[c*x^n]], x] /; FreeQ[{a, b, c, d, m, n, p}
, x]

Rule 2413

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*((d_.) + Log[(f_.)*(x_)^(r_.)]*(e_.))*((g_.)*(x_))^(m_.), x_Sy
mbol] :> With[{u = IntHide[(g*x)^m*(a + b*Log[c*x^n])^p, x]}, Dist[d + e*Log[f*x^r], u, x] - Dist[e*r, Int[Sim
plifyIntegrand[u/x, x], x], x]] /; FreeQ[{a, b, c, d, e, f, g, m, n, p, r}, x] &&  !(EqQ[p, 1] && EqQ[a, 0] &&
 NeQ[d, 0])

Rule 6617

Int[ExpIntegralEi[(a_.) + (b_.)*(x_)], x_Symbol] :> Simp[(a + b*x)*(ExpIntegralEi[a + b*x]/b), x] - Simp[E^(a
+ b*x)/b, x] /; FreeQ[{a, b}, x]

Rubi steps

\begin {align*} \int \frac {a+b \log \left (c x^n\right )}{x^3 \left (d+e \log \left (f x^m\right )\right )} \, dx &=\frac {e^{\frac {2 d}{e m}} \left (f x^m\right )^{2/m} \text {Ei}\left (-\frac {2 \left (d+e \log \left (f x^m\right )\right )}{e m}\right ) \left (a+b \log \left (c x^n\right )\right )}{e m x^2}-(b n) \int \frac {e^{\frac {2 d}{e m}} \left (f x^m\right )^{2/m} \text {Ei}\left (-\frac {2 \left (d+e \log \left (f x^m\right )\right )}{e m}\right )}{e m x^3} \, dx\\ &=\frac {e^{\frac {2 d}{e m}} \left (f x^m\right )^{2/m} \text {Ei}\left (-\frac {2 \left (d+e \log \left (f x^m\right )\right )}{e m}\right ) \left (a+b \log \left (c x^n\right )\right )}{e m x^2}-\frac {\left (b e^{\frac {2 d}{e m}} n\right ) \int \frac {\left (f x^m\right )^{2/m} \text {Ei}\left (-\frac {2 \left (d+e \log \left (f x^m\right )\right )}{e m}\right )}{x^3} \, dx}{e m}\\ &=\frac {e^{\frac {2 d}{e m}} \left (f x^m\right )^{2/m} \text {Ei}\left (-\frac {2 \left (d+e \log \left (f x^m\right )\right )}{e m}\right ) \left (a+b \log \left (c x^n\right )\right )}{e m x^2}-\frac {\left (b e^{\frac {2 d}{e m}} n \left (f x^m\right )^{2/m}\right ) \int \frac {\text {Ei}\left (-\frac {2 \left (d+e \log \left (f x^m\right )\right )}{e m}\right )}{x} \, dx}{e m x^2}\\ &=\frac {e^{\frac {2 d}{e m}} \left (f x^m\right )^{2/m} \text {Ei}\left (-\frac {2 \left (d+e \log \left (f x^m\right )\right )}{e m}\right ) \left (a+b \log \left (c x^n\right )\right )}{e m x^2}-\frac {\left (b e^{\frac {2 d}{e m}} n \left (f x^m\right )^{2/m}\right ) \text {Subst}\left (\int \text {Ei}\left (-\frac {2 (d+e x)}{e m}\right ) \, dx,x,\log \left (f x^m\right )\right )}{e m^2 x^2}\\ &=\frac {e^{\frac {2 d}{e m}} \left (f x^m\right )^{2/m} \text {Ei}\left (-\frac {2 \left (d+e \log \left (f x^m\right )\right )}{e m}\right ) \left (a+b \log \left (c x^n\right )\right )}{e m x^2}+\frac {\left (b e^{\frac {2 d}{e m}} n \left (f x^m\right )^{2/m}\right ) \text {Subst}\left (\int \text {Ei}(x) \, dx,x,-\frac {2 d}{e m}-\frac {2 \log \left (f x^m\right )}{m}\right )}{2 e m x^2}\\ &=-\frac {b n}{2 e m x^2}-\frac {b e^{\frac {2 d}{e m}} n \left (f x^m\right )^{2/m} \text {Ei}\left (-\frac {2 d}{e m}-\frac {2 \log \left (f x^m\right )}{m}\right ) \left (\frac {d}{e m}+\frac {\log \left (f x^m\right )}{m}\right )}{e m x^2}+\frac {e^{\frac {2 d}{e m}} \left (f x^m\right )^{2/m} \text {Ei}\left (-\frac {2 \left (d+e \log \left (f x^m\right )\right )}{e m}\right ) \left (a+b \log \left (c x^n\right )\right )}{e m x^2}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.08, size = 94, normalized size = 0.67 \begin {gather*} \frac {-b e m n+2 e^{\frac {2 d}{e m}} \left (f x^m\right )^{2/m} \text {Ei}\left (-\frac {2 \left (d+e \log \left (f x^m\right )\right )}{e m}\right ) \left (a e m-b d n-b e n \log \left (f x^m\right )+b e m \log \left (c x^n\right )\right )}{2 e^2 m^2 x^2} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(a + b*Log[c*x^n])/(x^3*(d + e*Log[f*x^m])),x]

[Out]

(-(b*e*m*n) + 2*E^((2*d)/(e*m))*(f*x^m)^(2/m)*ExpIntegralEi[(-2*(d + e*Log[f*x^m]))/(e*m)]*(a*e*m - b*d*n - b*
e*n*Log[f*x^m] + b*e*m*Log[c*x^n]))/(2*e^2*m^2*x^2)

________________________________________________________________________________________

Maple [C] Result contains higher order function than in optimal. Order 9 vs. order 4.
time = 0.41, size = 2341, normalized size = 16.60

method result size
risch \(\text {Expression too large to display}\) \(2341\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+b*ln(c*x^n))/x^3/(d+e*ln(f*x^m)),x,method=_RETURNVERBOSE)

[Out]

-1/2*(-I*b*Pi*csgn(I*c)*csgn(I*x^n)*csgn(I*c*x^n)+I*b*Pi*csgn(I*c)*csgn(I*c*x^n)^2+I*b*Pi*csgn(I*x^n)*csgn(I*c
*x^n)^2-I*b*Pi*csgn(I*c*x^n)^3+2*b*ln(c)+2*a)/e/m/x^2*f^(2/m)*(x^m)^(2/m)*exp((-I*Pi*csgn(I*f)*csgn(I*x^m)*csg
n(I*f*x^m)*e+I*Pi*csgn(I*f)*csgn(I*f*x^m)^2*e+I*Pi*csgn(I*x^m)*csgn(I*f*x^m)^2*e-I*Pi*csgn(I*f*x^m)^3*e+2*d)/e
/m)*Ei(1,2*ln(x)-I*(e*Pi*csgn(I*f)*csgn(I*x^m)*csgn(I*f*x^m)-e*Pi*csgn(I*f)*csgn(I*f*x^m)^2-e*Pi*csgn(I*x^m)*c
sgn(I*f*x^m)^2+e*Pi*csgn(I*f*x^m)^3+2*I*e*ln(f)+2*I*e*(ln(x^m)-m*ln(x))+2*I*d)/e/m)-b/e/m/x^2*f^(2/m)*(x^m)^(2
/m)*exp((-I*Pi*csgn(I*f)*csgn(I*x^m)*csgn(I*f*x^m)*e+I*Pi*csgn(I*f)*csgn(I*f*x^m)^2*e+I*Pi*csgn(I*x^m)*csgn(I*
f*x^m)^2*e-I*Pi*csgn(I*f*x^m)^3*e+2*d)/e/m)*Ei(1,2*ln(x)-I*(e*Pi*csgn(I*f)*csgn(I*x^m)*csgn(I*f*x^m)-e*Pi*csgn
(I*f)*csgn(I*f*x^m)^2-e*Pi*csgn(I*x^m)*csgn(I*f*x^m)^2+e*Pi*csgn(I*f*x^m)^3+2*I*e*ln(f)+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/e/m^2/x^2*f^(2/m)*(x^m)^(2/m)*
exp((-I*Pi*csgn(I*f)*csgn(I*x^m)*csgn(I*f*x^m)*e+I*Pi*csgn(I*f)*csgn(I*f*x^m)^2*e+I*Pi*csgn(I*x^m)*csgn(I*f*x^
m)^2*e-I*Pi*csgn(I*f*x^m)^3*e+2*d)/e/m)*Ei(1,2*ln(x)-I*(e*Pi*csgn(I*f)*csgn(I*x^m)*csgn(I*f*x^m)-e*Pi*csgn(I*f
)*csgn(I*f*x^m)^2-e*Pi*csgn(I*x^m)*csgn(I*f*x^m)^2+e*Pi*csgn(I*f*x^m)^3+2*I*e*ln(f)+2*I*e*(ln(x^m)-m*ln(x))+2*
I*d)/e/m)*ln(x^m)+b*n/e^2/m^2/x^2*f^(2/m)*(x^m)^(2/m)*exp((-I*Pi*csgn(I*f)*csgn(I*x^m)*csgn(I*f*x^m)*e+I*Pi*cs
gn(I*f)*csgn(I*f*x^m)^2*e+I*Pi*csgn(I*x^m)*csgn(I*f*x^m)^2*e-I*Pi*csgn(I*f*x^m)^3*e+2*d)/e/m)*Ei(1,2*ln(x)-I*(
e*Pi*csgn(I*f)*csgn(I*x^m)*csgn(I*f*x^m)-e*Pi*csgn(I*f)*csgn(I*f*x^m)^2-e*Pi*csgn(I*x^m)*csgn(I*f*x^m)^2+e*Pi*
csgn(I*f*x^m)^3+2*I*e*ln(f)+2*I*e*(ln(x^m)-m*ln(x))+2*I*d)/e/m)*d

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*log(c*x^n))/x^3/(d+e*log(f*x^m)),x, algorithm="maxima")

[Out]

integrate((b*log(c*x^n) + a)/((e*log(f*x^m) + d)*x^3), x)

________________________________________________________________________________________

Fricas [A]
time = 0.37, size = 92, normalized size = 0.65 \begin {gather*} -\frac {{\left (b m n e - 2 \, {\left (b m x^{2} e \log \left (c\right ) - b n x^{2} e \log \left (f\right ) - b d n x^{2} + a m x^{2} e\right )} e^{\left (\frac {2 \, {\left (e \log \left (f\right ) + d\right )} e^{\left (-1\right )}}{m}\right )} \operatorname {log\_integral}\left (\frac {e^{\left (-\frac {2 \, {\left (e \log \left (f\right ) + d\right )} e^{\left (-1\right )}}{m}\right )}}{x^{2}}\right )\right )} e^{\left (-2\right )}}{2 \, m^{2} x^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*log(c*x^n))/x^3/(d+e*log(f*x^m)),x, algorithm="fricas")

[Out]

-1/2*(b*m*n*e - 2*(b*m*x^2*e*log(c) - b*n*x^2*e*log(f) - b*d*n*x^2 + a*m*x^2*e)*e^(2*(e*log(f) + d)*e^(-1)/m)*
log_integral(e^(-2*(e*log(f) + d)*e^(-1)/m)/x^2))*e^(-2)/(m^2*x^2)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {a + b \log {\left (c x^{n} \right )}}{x^{3} \left (d + e \log {\left (f x^{m} \right )}\right )}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*ln(c*x**n))/x**3/(d+e*ln(f*x**m)),x)

[Out]

Integral((a + b*log(c*x**n))/(x**3*(d + e*log(f*x**m))), x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*log(c*x^n))/x^3/(d+e*log(f*x^m)),x, algorithm="giac")

[Out]

integrate((b*log(c*x^n) + a)/((e*log(f*x^m) + d)*x^3), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {a+b\,\ln \left (c\,x^n\right )}{x^3\,\left (d+e\,\ln \left (f\,x^m\right )\right )} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + b*log(c*x^n))/(x^3*(d + e*log(f*x^m))),x)

[Out]

int((a + b*log(c*x^n))/(x^3*(d + e*log(f*x^m))), x)

________________________________________________________________________________________